package com.ineatconseil.yougo.beans;

import org.apache.tapestry5.beaneditor.NonVisual;
import org.apache.tapestry5.beaneditor.Validate;

/**
 * A user type.
 * 
 * @author johanblo
 * 
 */
public class UserType {

	/**
	 * Unique identifier.
	 */
	@NonVisual
	private Long id;

	/**
	 * Label.
	 */
	@Validate("required")
	private String description;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean isEmpty() {
		return this.description == null && this.id == null;
	}

}
